cols = list(map(int, input().split()))
bag = set(cols)

print(len(bag))
